/****** Object:  Stored Procedure [dbo].spBienBanKiemKeKhoUpdate Script Date: 7/16/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spBienBanKiemKeKhoUpdate]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spBienBanKiemKeKhoUpdate]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		17/07/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spBienBanKiemKeKhoUpdate]
(
	@MaBBKKK nvarchar(12),
	@Thang tinyint,
	@Nam smallint,
	@NgayThucHien datetime,
	@NguoiThucHien nvarchar(35),
	@ThuKho nvarchar(35),
	@KeToan nvarchar(35),
	@GiamDoc nvarchar(35),
	@KetLuan tinyint,
	@NguyenNhan nvarchar(300),
	@YKien nvarchar(300),
	@MaKy nvarchar(8)
)

WITH ENCRYPTION

AS

SET NOCOUNT ON

UPDATE [tbl_BienBanKiemKeKho]
SET [Thang] = @Thang,
	[Nam] = @Nam,
	[NgayThucHien] = @NgayThucHien,
	[NguoiThucHien] = @NguoiThucHien,
	[ThuKho] = @ThuKho,
	[KeToan] = @KeToan,
	[GiamDoc] = @GiamDoc,
	[KetLuan] = @KetLuan,
	[NguyenNhan] = @NguyenNhan,
	[YKien] = @YKien,
	[MaKy] = @MaKy
WHERE	[MaBBKKK] = @MaBBKKK
GO

--GRANT EXECUTE ON [dbo].[spBienBanKiemKeKhoUpdate] TO [sa]
--GO
